require('./db');
const mongoose = require('mongoose');
module.exports={
    load:()=>{
        mongoose.set('useCreateIndex', true);
        mongoose.model('AutoNumber', require('./model/autonumber'));
        mongoose.model('Dictionary', require('./model/dictionary'));
        // mongoose.model('Record', require('./model/record'));
        mongoose.model('Docker', require('./model/docker'));
        mongoose.model('GameUser', require('./model/gameUser'));
        // mongoose.model('Record', require('./model/record'));
        mongoose.model('Error', require('./model/error'));
        mongoose.model('Admin', require('./model/admin'));
        // mongoose.model('Chat', require('./model/chat'));
        //mongoose.model('TaskConfig', require('./model/taskconfig'));
        // mongoose.model('Statics',require('./model/statics'));
        // mongoose.model('Notice',require('./model/notice'));
        // mongoose.model('InviteGiftCfg',require('./model/InviteGiftCfg'));
        mongoose.model('Channel',require('./model/channel')); //渠道
        mongoose.model('Census',require('./model/census')); //统计
        mongoose.model('FriendlyLink',require('./model/friendlyLink')); //友情链接
        // mongoose.model('ClickEvent',require('./model/clickEvent')); //点击事件
        mongoose.model('ChatMessage',require('./model/chatMessage'));
        mongoose.model('FriendlyLink', require('./model/friendlyLink'));
        mongoose.model('FriendlyLinkGroup', require('./model/friendlyLinkGroup'));
        mongoose.model('FriendLinkClick',require('./model/friendLinkClick')); //友情链接点击统计
        mongoose.model('ChannelCensus',require('./model/channelCensus')); //友情链接点击统计
        mongoose.model('ChannelEvent',require('./model/channelEvent')); //渠道事件统计
        mongoose.model('ClickCensus', require('./model/clickCensus'));
        // let model = mongoose.models['Notice'];
        // model.create({
        //     title : '标题1',
        //     time : Date.now(),
        //     from : '系统',
        //     overdueTime : Date.now()+1000000,
        //     content : '我是内容',
        //     images : [],
        //     props : [],
        //     status : 0,
        //     scene : 0
        // })

    }
};
